<#include "/admin/common/_layout.html"/>
<@layout>
<table class="table table-striped table-bordered table-condensed">
    <tbody>
    <tr align="center">
        <th>
            类型
            <input type="text" class="input-medium search-query" value="" name="filter_LIKES_name">
            <button type="button" onclick="search()" class="btn btn-small">
                <i class="icon-search"></i>
                搜索
            </button>
            <a class="btn btn-small right" href="order/add">添加订单</a>
        </th>
    </tr>
    </tbody>
</table>

<table class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>#</th>
        <th><a href="javascript:sort('sn')">订单号</a></th>
        <th><a href="javascript:sort('name')">订单名称</a></th>
        <th><a href="javascript:sort('goodsId')">商品名称</a></th>
        <th><a href="javascript:sort('num')">订购数量</a></th>
        <th><a href="javascript:sort('totalPrice')">订单总价</a></th>
        <th><a href="javascript:sort('phone')">联系电话</a></th>
        <th><a href="javascript:sort('address')">收货地址</a></th>
        <th><a href="javascript:sort('content')">备注</a></th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>


    <#list orderPage.getList() as x>
        <tr>
            <td>${x.id}</td>
            <td>${x.sn}</td>
            <td>${x.name}</td>
            <td>${x.goodsId}</td>
            <td>${x.num}</td>
            <td>${x.totalPrice}</td>
            <td>${x.phone}</td>
            <td>${x.address}</td>
            <td>${x.content}</td>
            <td>
                <a href="order/delete/${x.id}">删除</a>
                <a href="order/edit/${x.id}">修改</a>
            </td>
        </tr>
    </#list>
    </tbody>
</table>

<#include "/admin/common/_paginate.html" />
<@paginate currentPage=orderPage.pageNumber totalPage=orderPage.totalPage actionUrl="/admin/order/" />
<hr/>
</@layout>





